package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class FolderBase{
	boolean[] modified=new boolean[7];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public FolderBase(){}
	public FolderBase(java.lang.Long folderId,java.lang.String folderName,java.lang.Long parentId,java.lang.Long userId,java.lang.Long postCount,java.util.Date createTime,java.lang.String absolutePath){
		setFolderId(folderId);
		setFolderName(folderName);
		setParentId(parentId);
		setUserId(userId);
		setPostCount(postCount);
		setCreateTime(createTime);
		setAbsolutePath(absolutePath);
	}
	public void setFolderId(java.lang.Long folderId){
		if(folderId!=null) {
			set("folderId",folderId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getFolderId(){
		return (java.lang.Long)get("folderId");
	}
	public void setFolderName(java.lang.String folderName){
		if(folderName!=null) {
			set("folderName",folderName);
			this.modified[1] =true;
		}
	}
	public java.lang.String getFolderName(){
		return (java.lang.String)get("folderName");
	}
	public void setParentId(java.lang.Long parentId){
		if(parentId!=null) {
			set("parentId",parentId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getParentId(){
		return (java.lang.Long)get("parentId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setPostCount(java.lang.Long postCount){
		if(postCount!=null) {
			set("postCount",postCount);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getPostCount(){
		return (java.lang.Long)get("postCount");
	}
	public void setCreateTime(java.util.Date createTime){
		if(createTime!=null) {
			set("createTime",createTime);
			this.modified[5] =true;
		}
	}
	public java.util.Date getCreateTime(){
		return (java.util.Date)get("createTime");
	}
	public void setAbsolutePath(java.lang.String absolutePath){
		if(absolutePath!=null) {
			set("absolutePath",absolutePath);
			this.modified[6] =true;
		}
	}
	public java.lang.String getAbsolutePath(){
		return (java.lang.String)get("absolutePath");
	}
}
